import request from '@/utils/request'

// 查询aa列表
export function listIdentification(query) {
  return request({
    url: 'app/identification/list/', 
    method: 'get',
    params:query
  })
}

// 查询aa详细
export function getIdentification(identificationId) {
  return request({
    url: 'app/identification/' + identificationId,
    method: 'get'
  })
}

// 新增aa
export function addIdentification(data) {
  return request({
    url: 'app/identification',
    method: 'post',
    data: data
  })
}

// 修改aa
export function updateIdentification(data) {
  return request({
    url: 'app/identification',
    method: 'put',
    data: data
  })
}

// 删除aa
export function delIdentification(identificationId) {
  return request({
    url: 'app/identification/' + identificationId,
    method: 'delete'
  })
}

// 添加责任人
export function triUser(data) {
  return request({
    url: 'app/triUser',
    method: 'POST',
    data
  })
}
// 添加管控措施
export function triControl(data) {
  return request({
    url: 'app/triControl',
    method: 'POST',
    data
  })
}
// 查询管控具体措施
export function managerList(id) {
  return request({
    url: `app/identification/manager/list/${id}`,
    method: 'GET',
  })
}
// 风险辨识删除管控人员
export function delTriUser(id) {
  return request({
    url: `app/triUser/${id}`,
    method: 'delete',
  })
}
// 风险辨识删除管控内容
export function delTriContent(id) {
  return request({
    url: `app/triControl/${id}`,
    method: 'delete',
  })
}
// 导出
export function delTriContentExport(id) {
  return request({
    url: `app/identification/exportExcelSpecial`,
    method: 'post',
  })
}